Tag: two pointers
-
BinarySearch 0012 Longest Sublist with K Distinct Numbers (09 Apr 2022)
-
BinarySearch 0021 Subsequence Strings (09 Apr 2022)
-
BinarySearch 0040 Kth Last Node of a Linked List (09 Apr 2022)
-
BinarySearch 0041 Reverse a Linked List (09 Apr 2022)
-
BinarySearch 0042 Palindrome Linked List (09 Apr 2022)
-
BinarySearch 0043 Rotate List Left by K (09 Apr 2022)
-
BinarySearch 0079 Merging Two Sorted Lists (09 Apr 2022)
-
BinarySearch 0081 Central Linked List (09 Apr 2022)
-
BinarySearch 0090 Rain Catcher (09 Apr 2022)
-
BinarySearch 0096 Interleaved String (09 Apr 2022)
-
BinarySearch 0099 List Partitioning (09 Apr 2022)
-
BinarySearch 0107 Rocketship Rescue (09 Apr 2022)
-
BinarySearch 0126 Detect the Only Duplicate in a List (09 Apr 2022)
-
BinarySearch 0142 Interleaved Linked List (09 Apr 2022)
-
BinarySearch 0154 Pairwise Linked List Swap (09 Apr 2022)
-
BinarySearch 0171 Reverse Words (09 Apr 2022)
-
BinarySearch 0172 Reverse Words Sequel (09 Apr 2022)
-
BinarySearch 0182 Interval Overlaps (09 Apr 2022)
-
BinarySearch 0203 Linked List Deletion (09 Apr 2022)
-
BinarySearch 0208 Maximum Removal Subsequence String (09 Apr 2022)
-
BinarySearch 0214 Task Hare (09 Apr 2022)
-
BinarySearch 0215 Happy Numbers (09 Apr 2022)
-
BinarySearch 0220 Moo (09 Apr 2022)
-
BinarySearch 0240 Minimum Window Substring (09 Apr 2022)
-
BinarySearch 0241 Triangle Triplets (09 Apr 2022)
-
BinarySearch 0258 Unique Characters of Every Substring (09 Apr 2022)
-
BinarySearch 0259 Diverse Words (09 Apr 2022)
-
BinarySearch 0265 Minimum Difference (09 Apr 2022)
-
BinarySearch 0280 Sum of Three Numbers (09 Apr 2022)
-
BinarySearch 0287 Remove One Letter (09 Apr 2022)
-
BinarySearch 0289 Smallest Difference (09 Apr 2022)
-
BinarySearch 0314 Symmetric Blocks (09 Apr 2022)
-
BinarySearch 0340 Linked List Folding (09 Apr 2022)
-
BinarySearch 0351 Linked List Partitioning (09 Apr 2022)
-
BinarySearch 0369 Sum of Three Numbers Sequel (09 Apr 2022)
-
BinarySearch 0403 Linked List Intersection (09 Apr 2022)
-
BinarySearch 0404 Linked List Union (09 Apr 2022)
-
BinarySearch 0430 Minimum Distance of Two Words in a Sentence (09 Apr 2022)
-
BinarySearch 0436 Longest Substring with 2 Distinct Characters (09 Apr 2022)
-
BinarySearch 0437 Back to Front Linked List (09 Apr 2022)
-
BinarySearch 0438 Sentence Reversal (09 Apr 2022)
-
BinarySearch 0477 Minimum Adjacent Swaps to Palindrome (09 Apr 2022)
-
BinarySearch 0493 Ugly Number Sequel (09 Apr 2022)
-
BinarySearch 0498 K Distinct Window (09 Apr 2022)
-
BinarySearch 0521 Min Max Sets (09 Apr 2022)
-
BinarySearch 0529 Binary Matrix Leftmost One (09 Apr 2022)
-
BinarySearch 0539 Longest Sublist with Value Range Condition (09 Apr 2022)
-
BinarySearch 0580 Partition String (09 Apr 2022)
-
BinarySearch 0603 Two Non-Overlapping Lists With Target Sums (09 Apr 2022)
-
BinarySearch 0618 Linked List Jumps (09 Apr 2022)
-
BinarySearch 0620 Minimum Adjacent Elements (09 Apr 2022)
-
BinarySearch 0628 Longest Substring with Character Count of at Least K (09 Apr 2022)
-
BinarySearch 0635 Sum of Three Numbers Less than Target (09 Apr 2022)
-
BinarySearch 0640 Package Matching (09 Apr 2022)
-
BinarySearch 0653 Longest Strictly Increasing Then Decreasing Sublist (09 Apr 2022)
-
BinarySearch 0655 Minimum Size of Two Non-Overlapping Intervals (09 Apr 2022)
-
BinarySearch 0659 (09 Apr 2022)
-
BinarySearch 0677 Most Occurring Number After K Increments (09 Apr 2022)
-
BinarySearch 0678 In-Place Move Zeros to End of List (09 Apr 2022)
-
BinarySearch 0682 Profitable Job Matching (09 Apr 2022)
-
BinarySearch 0697 Graph Weight Queries (09 Apr 2022)
-
BinarySearch 0699 Sum of Four Numbers Less Than Target (09 Apr 2022)
-
BinarySearch 0700 Lowest Sum of Pair Larger than Target (09 Apr 2022)
-
BinarySearch 0720 Sublists Containing Maximum and Minimum (09 Apr 2022)
-
BinarySearch 0753 K-Distinct Sublists (09 Apr 2022)
-
BinarySearch 0781 Window Queries (09 Apr 2022)
-
BinarySearch 0796 Shortest Sublist to Remove to Make Sorted List (09 Apr 2022)
-
BinarySearch 0799 Remove Duplicates Occurring More Than Twice (09 Apr 2022)
-
BinarySearch 0800 Sum of Two Numbers with Sorted List (09 Apr 2022)
-
BinarySearch 0801 Quadratic Application (09 Apr 2022)
-
BinarySearch 0802 Circular Cyclic Loop (09 Apr 2022)
-
BinarySearch 0804 Stuck Keyboard (09 Apr 2022)
-
BinarySearch 0806 Sum of Two Numbers Less Than Target (09 Apr 2022)
-
BinarySearch 0807 Balance the Directions (09 Apr 2022)
-
BinarySearch 0810 Longest Repeating Sublist After K Updates (09 Apr 2022)
-
BinarySearch 0817 Kth Pair Distance (09 Apr 2022)
-
BinarySearch 0824 Sublist with Largest Min-Length Product (09 Apr 2022)
-
BinarySearch 0836 Sum Pairs to Target (09 Apr 2022)
-
BinarySearch 0857 Permute to Make List Larger (09 Apr 2022)
-
BinarySearch 0891 Number of Sublists That Don't Contain Target List (09 Apr 2022)
-
BinarySearch 0919 Sum of Sublist Range Sum (09 Apr 2022)
-
BinarySearch 0927 Word Distance Queries (09 Apr 2022)
-
BinarySearch 0948 Number of Sublists with Max in Interval (09 Apr 2022)
-
BinarySearch 0958 Compressed Vector Product (09 Apr 2022)
-
BinarySearch 0966 Kth Largest Pair Product (09 Apr 2022)
-
BinarySearch 0979 Bounded Square Sums (09 Apr 2022)
-
BinarySearch 0983 Rotate a Box Under Gravity (09 Apr 2022)
-
BinarySearch 1002 Dropped Sensor Metric (09 Apr 2022)
-
Leetcode 0001. Two Sum (09 Apr 2022)
-
Leetcode 0011. Container With Most Water (09 Apr 2022)
-
Leetcode 0015. 3Sum (09 Apr 2022)
-
Leetcode 0016 3Sum Closest (09 Apr 2022)
-
Leetcode 0018. 4Sum (09 Apr 2022)
-
Leetcode 0019. Remove Nth Node From End of List (09 Apr 2022)
-
Leetcode 0021. Merge Two Sorted Lists (09 Apr 2022)
-
Leetcode 0026. Remove Duplicates from Sorted Array (09 Apr 2022)
-
Leetcode 0027. Remove Element (09 Apr 2022)
-
Leetcode 0028. Implement strStr() (09 Apr 2022)
-
Leetcode 0042. Trapping Rain Water (09 Apr 2022)
-
Leetcode 0075. Sort Colors (09 Apr 2022)
-
Leetcode 0076. Minimum Window Substring (09 Apr 2022)
-
Leetcode 0080. Remove Duplicates from Sorted Array II (09 Apr 2022)
-
Leetcode 0086. Partition List (09 Apr 2022)
-
Leetcode 0088. Merge Sorted Array (09 Apr 2022)
-
Leetcode 0125. Valid Palindrome (09 Apr 2022)
-
Leetcode 0141. Linked List Cycle (09 Apr 2022)
-
Leetcode 0142. Linked List Cycle II (09 Apr 2022)
-
Leetcode 0151. Reverse Words in a String (09 Apr 2022)
-
Leetcode 0159 Longest Substring with At Most Two Distinct Characters (09 Apr 2022)
-
Leetcode 0160. Intersection of Two Linked Lists (09 Apr 2022)
-
Leetcode 0167. Two Sum II - Input array is sorted (09 Apr 2022)
-
Leetcode 0186 Reverse Words in a String II (09 Apr 2022)
-
Leetcode 0189. Rotate Array (09 Apr 2022)
-
Leetcode 0202 Happy Number (09 Apr 2022)
-
Leetcode 0206 Reverse Linked List (09 Apr 2022)
-
Leetcode 0209 Minimum Size Subarray Sum (09 Apr 2022)
-
Leetcode 0228. Summary Ranges (09 Apr 2022)
-
Leetcode 0234. Palindrome Linked List (09 Apr 2022)
-
Leetcode 0243 Shortest Word Distance (09 Apr 2022)
-
Leetcode 0244 Shortest Word Distance II (09 Apr 2022)
-
Leetcode 0245. Shortest Word Distance III (09 Apr 2022)
-
Leetcode 0259. 3Sum Smaller (09 Apr 2022)
-
Leetcode 0283 Move Zeros (09 Apr 2022)
-
Leetcode 0287. Find the Duplicate Number (09 Apr 2022)
-
Leetcode 0328 Odd Even Linked List (09 Apr 2022)
-
Leetcode 0340. Longest Substring with At Most K Distinct Characters (09 Apr 2022)
-
Leetcode 0344. Reverse String (09 Apr 2022)
-
Leetcode 0345. Reverse Vowels of a String (09 Apr 2022)
-
Leetcode 0349 Intersection of Two Arrays (09 Apr 2022)
-
Leetcode 0350 Intersection of Two Arrays II (09 Apr 2022)
-
Leetcode 0360. Sort Transformed Array (09 Apr 2022)
-
Leetcode 0392. Is Subsequence (09 Apr 2022)
-
Leetcode 0395. Longest Substring with At Least K Repeating Characters (09 Apr 2022)
-
Leetcode 0424 Longest Repeating Character Replacement (09 Apr 2022)
-
Leetcode 0434 Number of Segments in a String (09 Apr 2022)
-
Leetcode 0443 String Compression (09 Apr 2022)
-
Leetcode 0455 Assign Cookies (09 Apr 2022)
-
Leetcode 0457 Circular Array Loop (09 Apr 2022)
-
Leetcode 0466. Count The Repetitions (09 Apr 2022)
-
Leetcode 0481 Magical String (09 Apr 2022)
-
Leetcode 0485 Max Consecutive Ones (09 Apr 2022)
-
Leetcode 0522 Longest Uncommon Subsequence II (09 Apr 2022)
-
Leetcode 0524. Longest Word in Dictionary through Deleting (09 Apr 2022)
-
Leetcode 0532. K-diff Pairs in an Array (09 Apr 2022)
-
Leetcode 0541 Reverse String II (09 Apr 2022)
-
Leetcode 0557. Reverse Words in a String III (09 Apr 2022)
-
Leetcode 0567 Permutation in String (09 Apr 2022)
-
Leetcode 0611. Valid Triangle Number (09 Apr 2022)
-
Leetcode 0632 Smallest Range Covering Elements from K Lists (09 Apr 2022)
-
Leetcode 0653. Two Sum IV - Input is a BST (09 Apr 2022)
-
Leetcode 0658. Find K Closest Elements (09 Apr 2022)
-
Leetcode 0674 Longest Continuous Increasing Subsequence (09 Apr 2022)
-
Leetcode 0680 Valid Palindrome II (09 Apr 2022)
-
Leetcode 0713. Subarray Product Less Than K (09 Apr 2022)
-
Leetcode 0719 Find K-th Smallest Pair Distance (09 Apr 2022)
-
Leetcode 0723 Candy Crush (09 Apr 2022)
-
Leetcode 0763. Partition Labels (09 Apr 2022)
-
Leetcode 0786 K-th Smallest Prime Fraction (09 Apr 2022)
-
Leetcode 0795. Number of Subarrays with Bounded Maximum (09 Apr 2022)
-
Leetcode 0826 Most Profit Assigning Work (09 Apr 2022)
-
Leetcode 0828 Count Unique Characters of All Substrings of a Given String (09 Apr 2022)
-
Leetcode 0830 Positions of Large Groups (09 Apr 2022)
-
Leetcode 0838. Push Dominoes (09 Apr 2022)
-
Leetcode 0844 Backspace String Compare (09 Apr 2022)
-
Leetcode 0845. Longest Mountain in Array (09 Apr 2022)
-
Leetcode 0870. Advantage Shuffle (09 Apr 2022)
-
Leetcode 0876 Middle of the Linked List (09 Apr 2022)
-
Leetcode 0881. Boats to Save People (09 Apr 2022)
-
Leetcode 0905. Sort Array By Parity (09 Apr 2022)
-
Leetcode 0917 Reverse Only Letters (09 Apr 2022)
-
Leetcode 0922. Sort Array By Parity II (09 Apr 2022)
-
Leetcode 0923. 3Sum With Multiplicity (09 Apr 2022)
-
Leetcode 0925 Long Pressed Name (09 Apr 2022)
-
Leetcode 0941. Valid Mountain Array (09 Apr 2022)
-
Leetcode 0942. DI String Match (09 Apr 2022)
-
Leetcode 0948. Bag of Tokens (09 Apr 2022)
-
Leetcode 0962. Maximum Width Ramp (09 Apr 2022)
-
Leetcode 0977. Squares of a Sorted Array (09 Apr 2022)
-
Leetcode 0986. Interval List Intersections (09 Apr 2022)
-
Leetcode 0992 Subarrays with K Different Integers (09 Apr 2022)
-
Leetcode 1023. Camelcase Matching (09 Apr 2022)
-
Leetcode 1024. Video Stitching (09 Apr 2022)
-
Leetcode 1040. Moving Stones Until Consecutive II (09 Apr 2022)
-
Leetcode 1089. Duplicate Zeros (09 Apr 2022)
-
Leetcode 1099 Two Sum Less Than K (09 Apr 2022)
-
Leetcode 1100 Find K-Length Substrings With No Repeated Characters (09 Apr 2022)
-
Leetcode 1147. Longest Chunked Palindrome Decomposition (09 Apr 2022)
-
Leetcode 1163. Last Substring in Lexicographical Order (09 Apr 2022)
-
Leetcode 1214 Two Sum BSTs (09 Apr 2022)
-
Leetcode 1229 Meeting Scheduler (09 Apr 2022)
-
Leetcode 1326. Minimum Number of Taps to Open to Water a Garden (09 Apr 2022)
-
Leetcode 1474 Delete N Nodes After M Nodes of a Linked List (09 Apr 2022)
-
Leetcode 1498. Number of Subsequences That Satisfy the Given Sum Condition (09 Apr 2022)
-
Leetcode 1508. Range Sum of Sorted Subarray Sums (09 Apr 2022)
-
Leetcode 1520. Maximum Number of Non-Overlapping Substrings (09 Apr 2022)
-
Leetcode 1537. Get the Maximum Score (09 Apr 2022)
-
Leetcode 1564 Put Boxes Into the Warehouse I (09 Apr 2022)
-
Leetcode 1574. Shortest Subarray to be Removed to Make Array Sorted (09 Apr 2022)
-
Leetcode 1610. Maximum Number of Visible Points (09 Apr 2022)
-
Leetcode 1634 Add Two Polynomials Represented as Linked Lists (09 Apr 2022)
-
Leetcode 1695. Maximum Erasure Value (09 Apr 2022)
-
Leetcode 1697. Checking Existence of Edge Length Limited Paths (09 Apr 2022)
-
Leetcode 1708 Largest Subarray Length K (09 Apr 2022)
-
Leetcode 1755 Closest Subsequence Sum (09 Apr 2022)
-
Leetcode 1782. Count Pairs Of Nodes (09 Apr 2022)
-
Leetcode 1793. Maximum Score of a Good Subarray (09 Apr 2022)
-
Leetcode 1826 Faulty Sensor (09 Apr 2022)
-
Leetcode 1861. Rotating the Box (09 Apr 2022)
-
Leetcode 1868 Product of Two Run-Length Encoded Arrays (09 Apr 2022)
-
Leetcode 1918 Kth Smallest Subarray Sum (09 Apr 2022)
-
Leetcode 1989 Maximum Number of People That Can Be Caught in Tag (09 Apr 2022)
-
Leetcode 2035 Partition Array Into Two Arrays to Minimize Sum Difference (09 Apr 2022)